import os
import time

from celery import Celery

from .calery_config import config

config_name = os.getenv('ENV') or 'default'

celery_app = Celery("tasks")
celery_app.config_from_object(config[config_name])


@celery_app.task
def test(num):
    time.sleep(2)

    print("#@@", num * 99)
